/*
 * Copyright 2010 Mttang.com All right reserved. This software is the confidential and proprietary information of
 * Mttang.com ("Confidential Information"). You shall not disclose such Confidential Information and shall use it only
 * in accordance with the terms of the license agreement you entered into with Mttang.com.
 */
package com.mttang.sys.web.controller;
import java.util.Locale;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.context.MessageSource;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.view.RedirectView;

import com.mttang.framework.core.paginated.web.controller.AbstractController;
import com.mttang.framework.core.web.controller.BaseDispatcherSimpleFormController;

/**
 * 类RolePrvController.java的实现描述：TODO 类实现描述
 * 
 * @author 郑斌 2010-6-29 上午08:45:08
 */
public class RolePrvController extends AbstractController {

    /**
     * 没有权限的跳转
     * @param request
     * @param response
     * @return
     * @throws Exception
     */
    public ModelAndView prvError(HttpServletRequest request, 
                                 HttpServletResponse response) throws Exception {
        MessageSource msg = (MessageSource) this.getApplicationContext().getBean("messageSource");
        return new ModelAndView("error", "bean", msg.getMessage("sys.prv", null, Locale.CHINA));
       }


}
